var ikaros=new Vue({
    el: '#main-nav',
    data: {
        code:'',
        list:'',
        msg:'',
        menu_admin:'',
        active_item:'',
        /*url:''*/
    },
    created: function(){
        /*ikaros.url=""*/
        var baseUrl = $("#baseUrl").val();
        this.getMenuList(baseUrl);
        var menuPath = $("#menuPath").val();
        this.getMenuUrl(menuPath);
    },
    methods: {
        getMenuList: function (baseUrl) {
            $.get(baseUrl+'/menuList',{},function (result){
                ikaros.list=result.data;
                console.log('result='+result.data[0].list[0].url);
                console.log('result='+result.data[0].list[0].url);
            })
            /*axios.get('/menuList', {})
             .then(function (result) {
             ikaros.list=result.data.data[0];
             console.log('result='+result.data.data[0].name);
             })*/
        },
        getMenuUrl:function (menuPath) {
            /*alert(menuPath);
             $("#menuPath").addClass("active-item")*/
            /*this.active_item="active-item";*/
        },
    }
});
